//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System;
using System.Web.UI.WebControls;
using CommunityServer.Components;
using System.Collections.Specialized;

namespace CommunityServer.Controls {

    
    public class LanguageDropDownList : DropDownList {

        public LanguageDropDownList() {

            NameValueCollection supportedLanguages = ResourceManager.GetSupportedLanguages();

            foreach (string key in supportedLanguages.Keys) {
                Items.Add( new ListItem(supportedLanguages[key], key));
            }
        }
    }
}
